- 
		Home
	
 
	- 
WooCommerce Square
 
- 
4.1.0
 
- 
Code
 
- 
Classes
 
-  Payment_Gateway_Payment_Tokens_Handler 
 
	
	
		
			
				
					
													
								
																			
											| Total Complexity | 
											97 | 
										
																			
											| Dependencies | 
											9 | 
										
																			
											| Dependents | 
											1 | 
										
																	
							 
													
								
																			
											| Total lines | 
											883 | 
										
																			
											| Lines of code | 
											332 | 
										
																			
											| Logical lines of code | 
											199 | 
										
																	
							 
													
								
																			
											| Comment lines | 
											371 | 
										
																			
											| Methods | 
											28 | 
										
																			
											| Properties | 
											3 | 
										
																	
							 
											 
				 
									
							 
		 
	 
	Methods 28
	
		
		
			| Method | 
							Rating | 
													
					
						Maintainability
					
				 | 
										
					Complexity
				 | 
										
					Lines of code
				 | 
					
		
		
					
				| get_tokens() | 
									B  | 
																	39 | 
													20 | 
													57 | 
							
					
				| create_token() | 
									A  | 
																	44 | 
													14 | 
													43 | 
							
					
				| register_payment_tokens_migration_scheduler() | 
									A  | 
																	47 | 
													7 | 
													35 | 
							
					
				| remove_token() | 
									S  | 
																	56 | 
													7 | 
													17 | 
							
					
				| set_default_token() | 
									S  | 
																	54 | 
													6 | 
													20 | 
							
					
				| merge_token_data() | 
									S  | 
																	57 | 
													6 | 
													16 | 
							
					
				| get_token() | 
									S  | 
																	59 | 
													3 | 
													15 | 
							
					
				| schedule_token_migration_job() | 
									S  | 
																	66 | 
													3 | 
													8 | 
							
					
				| update_token() | 
									S  | 
																	63 | 
													3 | 
													10 | 
							
					
				| user_has_token() | 
									S  | 
																	65 | 
													3 | 
													9 | 
							
					
				| get_user_meta_name() | 
									S  | 
																	69 | 
													3 | 
													6 | 
							
					
				| get_order_note() | 
									S  | 
																	60 | 
													2 | 
													14 | 
							
					
				| update_tokens() | 
									S  | 
																	66 | 
													2 | 
													8 | 
							
					
				| should_tokenize() | 
									S  | 
																	77 | 
													2 | 
													3 | 
							
					
				| get_transient_key() | 
									S  | 
																	66 | 
													2 | 
													7 | 
							
					
				| format_for_db() | 
									S  | 
																	68 | 
													2 | 
													7 | 
							
					
				| add_token() | 
									S  | 
																	60 | 
													1 | 
													13 | 
							
					
				| __construct() | 
									S  | 
																	65 | 
													1 | 
													8 | 
							
					
				| clear_cache_for_new_token() | 
									S  | 
																	81 | 
													1 | 
													3 | 
							
					
				| build_token() | 
									S  | 
																	79 | 
													1 | 
													3 | 
							
					
				| should_delete_token() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| get_token_editor() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| tokenization_forced() | 
									S  | 
																	77 | 
													1 | 
													3 | 
							
					
				| get_merge_attributes() | 
									S  | 
																	78 | 
													1 | 
													3 | 
							
					
				| clear_transient() | 
									S  | 
																	80 | 
													1 | 
													3 | 
							
					
				| clear_all_transients() | 
									S  | 
																	67 | 
													1 | 
													9 | 
							
					
				| get_environment_id() | 
									S  | 
																	82 | 
													1 | 
													3 | 
							
					
				| get_gateway() | 
									S  | 
																	82 | 
													1 | 
													3 |